package com.wanmait.recycle.mapper;

import java.util.List;

import com.wanmait.recycle.pojo.Comment;

public interface CommentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);
    
    /*根据文章id查询所有评论*/
    List<Comment> findByArticle(Integer id);
    /*添加一级评论*/
    void addFirstComment(Comment comment);
    /*添加二级评论*/
    void addSecondComment(Comment comment);
    
    
}